﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Akso.Inbounds.Dto;
using Abp.AutoMapper;

namespace Akso.Web.Areas.Inventory.Models.Inbounds
{
    public class InboundsViewModel
    {
        public string FilterText { get; set; }
    }

    [AutoMapFrom(typeof(GetInboundForEditOutput))]
    public class CreateOrEditInboundModalViewModel:GetInboundForEditOutput
    {
        public bool IsEditMode
        {
            get { return Inbound.Id.HasValue; }
        }
        
        public CreateOrEditInboundModalViewModel(GetInboundForEditOutput output)
        {
            output.MapTo(this);
        }
    }
    
    public class ImportModalViewModel
    {
        //文件存储临时路径
        public string TempFilePath { get; set; }
    }
}